package com.aiyige.base.eventbus;

/**
 * Created by zhuyakun on 2017/12/26.
 */

public class EventBuySuccess {
    String goodsId;
    String orderId;

    public EventBuySuccess() {
    }

    private EventBuySuccess(Builder builder) {
        setGoodsId(builder.goodsId);
        setOrderId(builder.orderId);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public static final class Builder {
        private String goodsId;
        private String orderId;

        private Builder() {
        }

        public Builder goodsId(String goodsId) {
            this.goodsId = goodsId;
            return this;
        }

        public Builder orderId(String orderId) {
            this.orderId = orderId;
            return this;
        }

        public EventBuySuccess build() {
            return new EventBuySuccess(this);
        }
    }
}
